/*
 *  shared_state.h
 *  xbox360wireless_receiver
 *
 *  Created by Delio Brignoli on 11/12/08.
 *  Copyright 2008 Delio Brignoli. All rights reserved.
 *
 */

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_XBOX_DEVICES 4
#define NS_PREFIX(symbol) xbox360wireless_receiver_##symbol
#define HEADSET_STATE NS_PREFIX(headset_state)
#define CONTROLLER_STATE NS_PREFIX(controller_state)
#define GET_CONTROLLER_STATE NS_PREFIX(get_controller_state)
#define SET_CONTROLLER_STATE NS_PREFIX(set_controller_state)
#define GET_HEADSET_STATE NS_PREFIX(get_headset_state)
#define SET_HEADSET_STATE NS_PREFIX(set_headset_state)

	typedef enum {
		HEADSET_DISCONNECTED = 0,
		HEADSET_CONNECTED,
		HEADSET_PAIRED
	} HEADSET_STATE;

	typedef enum {
		CONTROLLER_DISCONNECTED = 0,
		CONTROLLER_CONNECTED,
		CONTROLLER_PAIRED
	} CONTROLLER_STATE;

	HEADSET_STATE GET_HEADSET_STATE(int headset_num);
	int SET_HEADSET_STATE(int headset_num, HEADSET_STATE state);
	HEADSET_STATE GET_CONTROLLER_STATE(int controller_num);
	int SET_CONTROLLER_STATE(int controller_num, CONTROLLER_STATE state);

#ifdef __cplusplus
}
#endif
